import {
  StyleSheet,
  Text,
  View,
  ActivityIndicator,
  Platform,
  Alert,
} from 'react-native';
import React from 'react';

export default function ActivityIndicatetorCom() {
  if (Platform.OS === 'android') {
    Alert.alert('Android');
  } else if (Platform.OS === 'ios') {
  }
  return (
    <View style={[styles.container]}>
      {/* size 数字指定大小只在Android应用下有效 */}
      <ActivityIndicator color="blue" size="small" />
      <ActivityIndicator color="blue" size="large" />
      <ActivityIndicator color="blue" size={100} />
      <ActivityIndicator color="blue" size={150} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});
